﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SportsStore.Repository.Contexts;

namespace SportsStore.Repository.Migrations
{
    public class MigrationsContextFactory : IDbContextFactory<SportsStoreDbContext>
  {
        public SportsStoreDbContext Create()
    {
        return new SportsStoreDbContext(ConfigurationManager.ConnectionStrings["SportsStore"].ConnectionString);
    }
  }
}
